home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
The Original Shareware 1.1
/
The Original Shareware (WeMake CDs)(Volume 1.1)(CDs, Inc)(1993).iso
/
19
/
madtrb40.zip
/
TESTFNT.PAS
< prev
next >
Wrap
Pascal/Delphi Source File
|
1986-05-18
|
864b
|
30 lines
Program testfnt;
Var
key : char;
str80 : string[80];
Begin
writeln('Use functions keys. F1 = RAM char. F2 = ROM char. F10 = Quit');
repeat
read(kbd,key);
if keypressed then
begin
read(kbd,key);
case key of
';' : begin {F1 = use ram}
write(Lst,chr(27),chr(37),chr(1),chr(0)); {switch printer to RAM}
writeln('Enter text: ');
readln(str80);
writeln(Lst,str80);
end;
'<' : begin {F2 = use rom}
write(Lst,chr(27),chr(37),chr(0),chr(0));
writeln('Enter text: ');
readln(str80);
writeln(Lst,str80);
end;
end; {case}
end;
writeln('Press a function key');
until key = 'D';
end.